//b to c 路由
import { http } from "@/utils/http";
import { baseUrlApi } from "../utils";
import { ResultTable } from "../result/result_table";

const basePath = "b2c_config/";

//小强获取配置信息
export const getXiaoQiangConfig = (data?: object) => {
  return http.request<ResultTable>("post", baseUrlApi(basePath + "xiaoqiang"), {
    data
  });
};

//小强更新数据
export const updateXiaoQiangConfig = (data?: object) => {
  return http.request<ResultTable>(
    "post",
    baseUrlApi(basePath + "xiaoqiang/update"),
    {
      data
    }
  );
};

//泊安飞获取配置信息
export const getParknflyConfig = (data?: object) => {
  return http.request<ResultTable>("post", baseUrlApi(basePath + "parknfly"), {
    data
  });
};

//泊安飞更新数据
export const updateParknflyConfig = (data?: object) => {
  return http.request<ResultTable>(
    "post",
    baseUrlApi(basePath + "parknfly/update"),
    {
      data
    }
  );
};
